Active, self-directed electrical stimulation of the median nerve